load("//devtools/tools:defaults.bzl", "ng_project", "ng_web_test_suite", "sass_binary", "ts_test_library")

package(default_visibility = ["//visibility:public"])

sass_binary(
    name = "devtools_tabs_component_styles",
    src = "devtools-tabs.component.scss",
    deps = [
        "//devtools/projects/ng-devtools/src/styles:typography",
    ],
)

ng_project(
    name = "devtools-tabs",
    srcs = [
        "devtools-tabs.component.ts",
    ],
    angular_assets = [
        "devtools-tabs.component.html",
        ":devtools_tabs_component_styles",
    ],
    deps = [
        "//:node_modules/@angular/common",
        "//:node_modules/@angular/core",
        "//:node_modules/@angular/material",
        "//:node_modules/@types/chrome",
        "//:node_modules/rxjs",
        "//devtools/projects/ng-devtools/src/lib/application-environment",
        "//devtools/projects/ng-devtools/src/lib/application-providers:supported_apis",
        "//devtools/projects/ng-devtools/src/lib/application-services:frame_manager",
        "//devtools/projects/ng-devtools/src/lib/application-services:settings",
        "//devtools/projects/ng-devtools/src/lib/application-services:theme",
        "//devtools/projects/ng-devtools/src/lib/devtools-tabs/directive-explorer",
        "//devtools/projects/ng-devtools/src/lib/devtools-tabs/injector-tree:injector_tree",
        "//devtools/projects/ng-devtools/src/lib/devtools-tabs/profiler",
        "//devtools/projects/ng-devtools/src/lib/devtools-tabs/router-tree",
        "//devtools/projects/ng-devtools/src/lib/devtools-tabs/tab-update",
        "//devtools/projects/ng-devtools/src/lib/devtools-tabs/transfer-state",
        "//devtools/projects/ng-devtools/src/lib/shared/button",
        "//devtools/projects/protocol",
    ],
)

ts_test_library(
    name = "devtools_tabs_test",
    srcs = ["devtools-tabs.spec.ts"],
    deps = [
        ":devtools-tabs",
        "//:node_modules/@angular/common",
        "//:node_modules/@angular/core",
        "//:node_modules/@angular/material",
        "//:node_modules/rxjs",
        "//:node_modules/tslib",
        "//devtools/projects/ng-devtools/src/lib/application-environment",
        "//devtools/projects/ng-devtools/src/lib/application-services:frame_manager",
        "//devtools/projects/ng-devtools/src/lib/application-services:theme",
        "//devtools/projects/ng-devtools/src/lib/application-services:theme_types_lib",
        "//devtools/projects/ng-devtools/src/lib/application-services/test-utils:settings_mock",
        "//devtools/projects/ng-devtools/src/lib/devtools-tabs/directive-explorer",
        "//devtools/projects/ng-devtools/src/lib/devtools-tabs/tab-update",
        "//devtools/projects/protocol",
    ],
)

ng_web_test_suite(
    name = "test",
    deps = [
        ":devtools_tabs_test",
    ],
)
